﻿

    /// <summary>
    /// Sqlite数据库  数据基类
    /// </summary>
    public class BaseSqliteData
    {
        private int _id;
        [ModelHelp(true,"Id","int",true)]
        public int Id { get { return _id; } set { _id = value; } }
    }
    public class CharacterSqliteData:BaseSqliteData
    {
        private string _name;
        [ModelHelp(true,"Name","string",false)]
        public string Name { get { return _name; } set { _name = value; } }
        
        private float _height;
        //不把这个属性数据添加到数据库的表中
        // [ModelHelp(false,"Height","single",false)]
        [ModelHelp(true)]
        public float Height { get { return _height; } set { _height = value; } } 
        
        
        [ModelHelp(true)]
        public  int Age { get; set; }
        
        private bool _sex;
        [ModelHelp(true,"Sex","bool",false,true)]
        public bool Sex { get { return _sex; } set { _sex = value; } }
        
        public string TestModelHelp{get; set; }
    }

    public class ItemData : BaseSqliteData
    {
        [ModelHelp(true)]
        public string ItemName { get; set; }
        
        [ModelHelp]
        public int ItemCount { get; set; }
        
        [ModelHelp]
        public int CharacterId { get; set; }
        
        [ModelHelp]
        public int ItemId { get; set; }
        
        
    }
    

